<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app"></div>
    <script type="module">
      import { createApp, ref, reactive } from '../../../packages/vue/dist/vue.esm-browser.js'

      const App = {
        setup() {
          const count = ref(2)
          const add = async event => {
            console.log(event)
            count.value++
          }
          return {
            count,
            add
          }
        },
        template: `<h1 id="1" @click="async event => await add(event)">7</h1>`
      }

      createApp(App).mount('#app')
    </script>
  </body>
</html>
